import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqChaosFightPlayerInfoHelper } from "./SeqChaosFightPlayerInfoHelper";
type int = number;
//class SChaosFightBattleInfo
    
    export  class SChaosFightBattleInfo extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SChaosFightBattleInfo();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            SeqChaosFightPlayerInfoHelper.write(arg1, this.info);
            arg1.writeInt(this.battleLeftTime);
            arg1.writeInt(this.eliteRefreshTime);
            arg1.writeInt(this.lordRefreshTime);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.info = SeqChaosFightPlayerInfoHelper.read(arg1);
            this.battleLeftTime = arg1.readInt();
            this.eliteRefreshTime = arg1.readInt();
            this.lordRefreshTime = arg1.readInt();
            return;
        }

        public /* const */_type: int=2087;

        public /* var */info: Array<any>;

        public /* var */battleLeftTime: int;

        public /* var */eliteRefreshTime: int;

        public /* var */lordRefreshTime: int;

        public static /* var */_regist: SChaosFightBattleInfo;
    }

            SChaosFightBattleInfo._regist = new SChaosFightBattleInfo(true);
        